require("../../@babel/runtime/helpers/Arrayincludes"), (global.webpackJsonp = global.webpackJsonp || []).push([ [ "components/h-input/index" ], {
    "3aad": function(t, e, i) {
        (function(t) {
            var n = i("4ea4").default;
            Object.defineProperty(e, "__esModule", {
                value: !0
            }), e.default = void 0;
            var u = n(i("278c")), a = i("48b8"), o = i("e208"), l = {
                name: "HInput",
                props: {
                    inputType: {
                        type: String,
                        default: "text"
                    },
                    title: {
                        type: String,
                        default: ""
                    },
                    value: {
                        type: String,
                        default: ""
                    },
                    maxlength: {
                        type: Number,
                        default: 140
                    },
                    cursorSpacing: {
                        type: Number,
                        default: 40
                    },
                    placeholder: {
                        type: String,
                        default: ""
                    },
                    placeholderStyle: {
                        type: String,
                        default: "color: rgba(0, 0, 0, 0.25)"
                    },
                    inputBoxStyle: {
                        type: String,
                        default: ""
                    },
                    inputStyle: {
                        type: String,
                        default: ""
                    },
                    clearStyle: {
                        type: String,
                        default: "color: rgba(0, 0, 0, 0.12)"
                    },
                    hideClear: {
                        type: Boolean,
                        default: !1
                    },
                    maxTips: {
                        type: String,
                        default: ""
                    },
                    titleStyle: {
                        type: String,
                        default: ""
                    },
                    labelStyle: {
                        type: String,
                        default: ""
                    },
                    digitLength: {
                        type: Number,
                        default: 2
                    },
                    max: {
                        type: Number,
                        default: 0
                    },
                    outputNumber: {
                        type: Boolean,
                        default: !0
                    },
                    adjustPosition: {
                        type: Boolean,
                        default: !0
                    },
                    trim: {
                        type: Boolean,
                        default: !1
                    },
                    alwaysEmbed: {
                        type: Boolean,
                        default: !0
                    },
                    holdKeyboard: {
                        type: Boolean,
                        default: !0
                    },
                    useLabel: {
                        type: Boolean,
                        default: !1
                    },
                    autoScalingInfo: {
                        type: Object,
                        default: function() {
                            return {
                                open: !1,
                                unit: "",
                                inputStyle: "",
                                unitStyle: ""
                            };
                        }
                    }
                },
                data: function() {
                    return {
                        inputValue: "",
                        isFocus: !1,
                        keyboardHeight: 0
                    };
                },
                computed: {
                    showClear: function() {
                        return !this.hideClear && "" !== this.inputValue && this.isFocus;
                    },
                    systemInfo: function() {
                        return this.$store.state.systemInfo;
                    },
                    isIos: function() {
                        return this.systemInfo.isIos;
                    },
                    isNumber: function() {
                        return [ "digit" ].includes(this.inputType) && this.outputNumber;
                    }
                },
                watch: {
                    value: {
                        immediate: !0,
                        handler: function(t) {
                            this.inputValue = t;
                        }
                    },
                    inputValue: {
                        immediate: !0,
                        handler: function(t) {
                            var e = t;
                            "监听到inputValue变化：".concat(e), this.trim && (e = e.trim()), this.$emit("change", {
                                value: e
                            }), this.$emit("input", e);
                        }
                    }
                },
                methods: {
                    handleInput: function(t) {
                        var e, i = t.detail.value, n = (0, a.filterEmoji)(i);
                        if ("input:".concat(i, ",filterVal:").concat(n, ",max-Tips:").concat(this.maxTips), 
                        (null === (e = n) || void 0 === e ? void 0 : e.length) >= this.maxlength && this.maxTips && this.$toast({
                            title: this.maxTips
                        }), this.isNumber && Number.isNaN(Number(i))) return this.inputValue;
                        if ("digit" === this.inputType && this.digitLength >= 0) {
                            var o = i.split(".");
                            if (o.length > 2) return this.inputValue;
                            var l = (0, u.default)(o, 2), s = l[0], r = l[1];
                            if (0 === this.digitLength && (n = s), r && r.length > this.digitLength) return this.inputValue;
                        }
                        return this.max > 0 && i > this.max ? (this.inputValue = this.max, this.max) : (this.inputValue = n, 
                        n);
                    },
                    handleKeyboardheightchange: function(t) {
                        var e = t.detail.height;
                        console.info("键盘高度变更:", e, ",是否IOS:" + this.isIos), this.$emit("on-keyboard-height-change", e), 
                        0 === e && this.isFocus && this.isIos && console.info("隐藏键盘");
                    },
                    handleConfirm: function() {
                        console.info("输入框完成"), t.hideKeyboard();
                    },
                    onFocus: function(t) {
                        this.$emit("focus", t);
                    },
                    handleFocus: function() {
                        console.info("输入框选中"), this.isFocus = !0, this.$emit("focusClick");
                    },
                    handleBlur: function() {
                        this.isNumber && "" !== this.inputValue && (this.inputValue = Number(this.inputValue)), 
                        console.info("输入框失焦"), this.$emit("on-keyboard-height-change", 0), this.isFocus = !1, 
                        this.$emit("blurClick"), (0, o.onBlur)();
                    },
                    clearInput: function() {
                        this.inputValue = "", this.$emit("clear");
                    }
                }
            };
            e.default = l;
        }).call(this, i("543d").default);
    },
    "3c56": function(t, e, i) {
        i.d(e, "b", function() {
            return n;
        }), i.d(e, "c", function() {
            return u;
        }), i.d(e, "a", function() {});
        var n = function() {
            this.$createElement;
            this._self._c;
        }, u = [];
    },
    "56ed": function(t, e, i) {
        i.r(e);
        var n = i("3aad"), u = i.n(n);
        for (var a in n) [ "default" ].indexOf(a) < 0 && function(t) {
            i.d(e, t, function() {
                return n[t];
            });
        }(a);
        e.default = u.a;
    },
    "6def": function(t, e, i) {
        i.r(e);
        var n = i("3c56"), u = i("56ed");
        for (var a in u) [ "default" ].indexOf(a) < 0 && function(t) {
            i.d(e, t, function() {
                return u[t];
            });
        }(a);
        i("df6f");
        var o = i("f0c5"), l = Object(o.a)(u.default, n.b, n.c, !1, null, "c8cd6af2", null, !1, n.a, void 0);
        e.default = l.exports;
    },
    d8ea: function(t, e, i) {},
    df6f: function(t, e, i) {
        var n = i("d8ea");
        i.n(n).a;
    }
} ]), (global.webpackJsonp = global.webpackJsonp || []).push([ "components/h-input/index-create-component", {
    "components/h-input/index-create-component": function(t, e, i) {
        i("543d").createComponent(i("6def"));
    }
}, [ [ "components/h-input/index-create-component" ] ] ]);